{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "import os\n",
    "os.environ['PYSPARK_SUBMIT_ARGS'] = '--packages org.apache.spark:spark-streaming-kafka-0-8_2.11:2.0.0,com.datastax.spark:spark-cassandra-connector_2.11:2.0.0-M3 pyspark-shell'\n",
    "import time\n",
    "\n",
    "from pyspark import SparkContext, SparkConf\n",
    "from pyspark.sql import SQLContext, Row\n",
    "\n",
    "SPARK_MASTER=\"local[2]\"\n",
    "SPARK_MASTER=\"spark://master:7077\""
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "#os.environ['PYSPARK_SUBMIT_ARGS'] = '--packages com.databricks:spark-csv_2.10:1.3.0 pyspark-shell'"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {
    "collapsed": false
   },
   "outputs": [],
   "source": [
    "conf = SparkConf() \\\n",
    "    .setAppName(\"Streaming test\") \\\n",
    "    .setMaster(SPARK_MASTER) \\\n",
    "    .set(\"spark.cassandra.connection.host\", \"127.0.0.1\") \\\n",
    "    .set(\"spark.ui.port\",\"4040\")\n",
    "sc = SparkContext(conf=conf) \n",
    "sqlContext=SQLContext(sc)\n",
    "\n",
    "\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "from pyspark.streaming import StreamingContext\n",
    "from pyspark.streaming.kafka import KafkaUtils"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {
    "collapsed": false
   },
   "outputs": [],
   "source": [
    "ssc = StreamingContext(sc, 1)\n",
    "kvs = KafkaUtils.createStream(ssc, \"kafka:2181\", \"spark-streaming-consumer\", {'test': 1})\n",
    "kvs.pprint()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {
    "collapsed": false,
    "scrolled": true
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:13:59\n",
      "-------------------------------------------\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:14:00\n",
      "-------------------------------------------\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:14:01\n",
      "-------------------------------------------\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:14:02\n",
      "-------------------------------------------\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:14:03\n",
      "-------------------------------------------\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:14:04\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:14:02')\n",
      "(None, u'2017-02-17 18:14:03')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:14:05\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:14:04')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:14:06\n",
      "-------------------------------------------\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:14:07\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:14:05')\n",
      "(None, u'2017-02-17 18:14:06')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:14:08\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:14:07')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:14:09\n",
      "-------------------------------------------\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:14:10\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:14:08')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:14:11\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:14:09')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:14:12\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:14:10')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:14:13\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:14:11')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:14:14\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:14:12')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:14:15\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:14:13')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:14:16\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:14:14')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:14:17\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:14:15')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:14:18\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:14:16')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:14:19\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:14:17')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:14:20\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:14:18')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:14:21\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:14:19')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:14:22\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:14:20')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:14:23\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:14:21')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:14:24\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:14:22')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:14:25\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:14:23')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:14:26\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:14:24')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:14:27\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:14:25')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:14:28\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:14:26')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:14:29\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:14:27')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:14:30\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:14:28')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:14:31\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:14:29')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:14:32\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:14:30')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:14:33\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:14:31')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:14:34\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:14:32')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:14:35\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:14:33')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:14:36\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:14:34')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:14:37\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:14:35')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:14:38\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:14:36')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:14:39\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:14:37')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:14:40\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:14:38')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:14:41\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:14:39')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:14:42\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:14:40')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:14:43\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:14:41')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:14:44\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:14:42')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:14:45\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:14:43')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:14:46\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:14:44')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:14:47\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:14:45')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:14:48\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:14:46')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:14:49\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:14:47')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:14:50\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:14:48')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:14:51\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:14:49')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:14:52\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:14:50')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:14:53\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:14:51')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:14:54\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:14:52')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:14:55\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:14:53')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:14:56\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:14:54')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:14:57\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:14:55')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:14:58\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:14:56')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:14:59\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:14:57')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:15:00\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:14:58')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:15:01\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:14:59')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:15:02\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:15:00')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:15:03\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:15:01')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:15:04\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:15:02')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:15:05\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:15:03')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:15:06\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:15:04')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:15:07\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:15:05')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:15:08\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:15:06')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:15:09\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:15:07')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:15:10\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:15:08')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:15:11\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:15:09')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:15:12\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:15:10')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:15:13\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:15:11')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:15:14\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:15:12')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:15:15\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:15:13')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:15:16\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:15:14')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:15:17\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:15:15')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:15:18\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:15:16')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:15:19\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:15:17')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:15:20\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:15:18')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:15:21\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:15:19')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:15:22\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:15:20')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:15:23\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:15:21')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:15:24\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:15:22')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:15:25\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:15:23')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:15:26\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:15:24')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:15:27\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:15:25')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:15:28\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:15:26')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:15:29\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:15:27')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:15:30\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:15:28')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:15:31\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:15:29')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:15:32\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:15:30')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:15:33\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:15:31')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:15:34\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:15:32')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:15:35\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:15:33')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:15:36\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:15:34')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:15:37\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:15:35')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:15:38\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:15:36')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:15:39\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:15:37')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:15:40\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:15:38')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:15:41\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:15:39')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:15:42\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:15:40')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:15:43\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:15:41')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:15:44\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:15:42')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:15:45\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:15:43')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:15:46\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:15:44')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:15:47\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:15:45')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:15:48\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:15:46')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:15:49\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:15:47')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:15:50\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:15:48')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:15:51\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:15:49')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:15:52\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:15:50')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:15:53\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:15:51')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:15:54\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:15:52')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:15:55\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:15:53')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:15:56\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:15:54')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:15:57\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:15:55')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:15:58\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:15:56')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:15:59\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:15:57')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:16:00\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:15:58')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:16:01\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:15:59')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:16:02\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:16:00')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:16:03\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:16:01')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:16:04\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:16:02')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:16:05\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:16:03')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:16:06\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:16:04')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:16:07\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:16:05')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:16:08\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:16:06')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:16:09\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:16:07')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:16:10\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:16:08')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:16:11\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:16:09')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:16:12\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:16:11')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:16:13\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:16:12')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:16:14\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:16:13')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:16:15\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:16:14')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:16:16\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:16:15')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:16:17\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:16:16')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:16:18\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:16:17')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:16:19\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:16:18')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:16:20\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:16:19')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:16:21\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:16:20')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:16:22\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:16:21')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:16:23\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:16:22')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:16:24\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:16:23')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:16:25\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:16:24')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:16:26\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:16:25')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:16:27\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:16:26')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:16:28\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:16:27')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:16:29\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:16:28')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:16:30\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:16:29')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:16:31\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:16:30')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:16:32\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:16:31')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:16:33\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:16:32')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:16:34\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:16:33')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:16:35\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:16:34')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:16:36\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:16:35')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:16:37\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:16:36')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:16:38\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:16:37')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:16:39\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:16:38')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:16:40\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:16:39')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:16:41\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:16:40')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:16:42\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:16:41')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:16:43\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:16:42')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:16:44\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:16:43')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:16:45\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:16:44')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:16:46\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:16:45')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:16:47\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:16:46')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:16:48\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:16:47')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:16:49\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:16:48')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:16:50\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:16:49')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:16:51\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:16:50')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:16:52\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:16:51')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:16:53\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:16:52')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:16:54\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:16:53')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:16:55\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:16:54')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:16:56\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:16:55')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:16:57\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:16:56')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:16:58\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:16:57')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:16:59\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:16:58')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:17:00\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:16:59')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:17:01\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:17:00')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:17:02\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:17:01')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:17:03\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:17:02')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:17:04\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:17:03')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:17:05\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:17:04')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:17:06\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:17:05')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:17:07\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:17:06')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:17:08\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:17:07')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:17:09\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:17:08')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:17:10\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:17:09')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:17:11\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:17:10')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:17:12\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:17:11')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:17:13\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:17:12')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:17:14\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:17:13')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:17:15\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:17:14')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:17:16\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:17:15')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:17:17\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:17:16')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:17:18\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:17:17')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:17:19\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:17:18')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:17:20\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:17:19')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:17:21\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:17:20')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:17:22\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:17:21')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:17:23\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:17:22')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:17:24\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:17:23')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:17:25\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:17:24')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:17:26\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:17:25')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:17:27\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:17:26')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:17:28\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:17:27')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:17:29\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:17:28')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:17:30\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:17:29')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:17:31\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:17:30')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:17:32\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:17:31')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:17:33\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:17:32')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:17:34\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:17:33')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:17:35\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:17:34')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:17:36\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:17:35')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:17:37\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:17:36')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:17:38\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:17:37')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:17:39\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:17:38')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:17:40\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:17:39')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:17:41\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:17:40')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:17:42\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:17:41')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:17:43\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:17:42')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:17:44\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:17:43')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:17:45\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:17:44')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:17:46\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:17:45')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:17:47\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:17:46')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:17:48\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:17:47')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:17:49\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:17:48')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:17:50\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:17:49')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:17:51\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:17:50')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:17:52\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:17:51')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:17:53\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:17:52')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:17:54\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:17:53')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:17:55\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:17:54')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:17:56\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:17:55')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:17:57\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:17:56')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:17:58\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:17:57')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:17:59\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:17:58')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:18:00\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:17:59')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:18:01\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:18:00')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:18:02\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:18:01')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:18:03\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:18:02')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:18:04\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:18:03')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:18:05\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:18:04')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:18:06\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:18:05')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:18:07\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:18:06')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:18:08\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:18:07')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:18:09\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:18:08')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:18:10\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:18:09')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:18:11\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:18:10')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:18:12\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:18:11')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:18:13\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:18:12')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:18:14\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:18:13')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:18:15\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:18:14')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:18:16\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:18:15')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:18:17\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:18:16')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:18:18\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:18:17')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:18:19\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:18:18')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:18:20\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:18:19')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:18:21\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:18:20')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:18:22\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:18:21')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:18:23\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:18:22')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:18:24\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:18:23')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:18:25\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:18:24')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:18:26\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:18:25')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:18:27\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:18:26')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:18:28\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:18:27')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:18:29\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:18:28')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:18:30\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:18:29')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:18:31\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:18:30')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:18:32\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:18:31')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:18:33\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:18:32')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:18:34\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:18:33')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:18:35\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:18:34')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:18:36\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:18:35')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:18:37\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:18:36')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:18:38\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:18:37')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:18:39\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:18:38')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:18:40\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:18:39')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:18:41\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:18:40')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:18:42\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:18:41')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:18:43\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:18:42')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:18:44\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:18:43')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:18:45\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:18:44')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:18:46\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:18:45')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:18:47\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:18:46')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:18:48\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:18:47')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:18:49\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:18:48')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:18:50\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:18:49')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:18:51\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:18:50')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:18:52\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:18:51')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:18:53\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:18:52')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:18:54\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:18:53')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:18:55\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:18:54')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:18:56\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:18:55')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:18:57\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:18:56')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:18:58\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:18:57')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:18:59\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:18:58')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:19:00\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:18:59')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:19:01\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:19:00')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:19:02\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:19:01')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:19:03\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:19:02')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:19:04\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:19:03')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:19:05\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:19:04')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:19:06\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:19:05')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:19:07\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:19:06')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:19:08\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:19:07')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:19:09\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:19:08')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:19:10\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:19:09')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:19:11\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:19:10')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:19:12\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:19:11')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:19:13\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:19:12')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:19:14\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:19:13')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:19:15\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:19:14')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:19:16\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:19:15')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:19:17\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:19:16')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:19:18\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:19:17')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:19:19\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:19:18')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:19:20\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:19:19')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:19:21\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:19:20')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:19:22\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:19:21')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:19:23\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:19:22')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:19:24\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:19:23')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:19:25\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:19:24')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:19:26\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:19:25')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:19:27\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:19:26')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:19:28\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:19:27')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:19:29\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:19:28')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:19:30\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:19:29')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:19:31\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:19:30')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:19:32\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:19:31')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:19:33\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:19:32')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:19:34\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:19:33')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:19:35\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:19:34')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:19:36\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:19:35')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:19:37\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:19:36')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:19:38\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:19:37')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:19:39\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:19:38')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:19:40\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:19:39')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:19:41\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:19:40')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:19:42\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:19:41')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:19:43\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:19:42')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:19:44\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:19:43')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:19:45\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:19:44')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:19:46\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:19:45')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:19:47\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:19:46')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:19:48\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:19:47')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:19:49\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:19:48')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:19:50\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:19:49')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:19:51\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:19:50')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:19:52\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:19:51')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:19:53\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:19:52')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:19:54\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:19:53')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:19:55\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:19:54')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:19:56\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:19:55')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:19:57\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:19:56')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:19:58\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:19:57')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:19:59\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:19:58')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:20:00\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:19:59')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:20:01\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:20:00')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:20:02\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:20:01')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:20:03\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:20:02')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:20:04\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:20:03')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:20:05\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:20:04')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:20:06\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:20:05')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:20:07\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:20:06')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:20:08\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:20:07')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:20:09\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:20:08')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:20:10\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:20:09')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:20:11\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:20:10')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:20:12\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:20:11')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:20:13\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:20:12')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:20:14\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:20:13')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:20:15\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:20:14')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:20:16\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:20:15')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:20:17\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:20:16')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:20:18\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:20:17')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:20:19\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:20:18')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:20:20\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:20:19')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:20:21\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:20:20')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:20:22\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:20:21')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:20:23\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:20:22')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:20:24\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:20:23')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:20:25\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:20:24')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:20:26\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:20:25')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:20:27\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:20:26')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:20:28\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:20:27')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:20:29\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:20:28')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:20:30\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:20:29')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:20:31\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:20:30')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:20:32\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:20:31')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:20:33\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:20:32')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:20:34\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:20:33')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:20:35\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:20:34')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:20:36\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:20:35')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:20:37\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:20:36')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:20:38\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:20:37')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:20:39\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:20:38')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:20:40\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:20:39')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:20:41\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:20:40')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:20:42\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:20:41')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:20:43\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:20:42')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:20:44\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:20:43')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:20:45\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:20:44')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:20:46\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:20:45')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:20:47\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:20:46')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:20:48\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:20:47')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:20:49\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:20:48')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:20:50\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:20:49')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:20:51\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:20:50')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:20:52\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:20:51')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:20:53\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:20:52')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:20:54\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:20:53')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:20:55\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:20:54')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:20:56\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:20:55')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:20:57\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:20:56')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:20:58\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:20:57')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:20:59\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:20:58')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:21:00\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:20:59')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:21:01\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:21:00')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:21:02\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:21:01')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:21:03\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:21:02')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:21:04\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:21:03')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:21:05\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:21:04')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:21:06\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:21:05')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:21:07\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:21:06')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:21:08\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:21:07')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:21:09\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:21:08')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:21:10\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:21:09')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:21:11\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:21:10')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:21:12\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:21:11')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:21:13\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:21:12')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:21:14\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:21:13')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:21:15\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:21:14')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:21:16\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:21:15')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:21:17\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:21:16')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:21:18\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:21:17')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:21:19\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:21:18')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:21:20\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:21:19')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:21:21\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:21:20')\n",
      "\n",
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:21:22\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:21:21')\n",
      "\n"
     ]
    }
   ],
   "source": [
    "ssc.start()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "-------------------------------------------\n",
      "Time: 2017-02-17 18:21:23\n",
      "-------------------------------------------\n",
      "(None, u'2017-02-17 18:21:22')\n",
      "\n"
     ]
    }
   ],
   "source": [
    "ssc.stop()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {
    "collapsed": false
   },
   "outputs": [],
   "source": [
    "import time\n",
    "data=range(0,6)\n",
    "datardd=sc.parallelize(data,8)\n",
    "def wait5s(x):\n",
    "    time.sleep(1)\n",
    "    return x\n",
    "datardd.map(wait5s).collect()\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "sc.stop()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 2",
   "language": "python",
   "name": "python2"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 2
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython2",
   "version": "2.7.13"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
